import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

/**
 * junit4.SpringJUnit4ClassRunner父工程是有的,由于不是编译(complie)时用的依赖,所以用不了
 * 子工程需要导入依赖,而且版本要与父工程的spring-webmvc和spring-web版本一致,否侧报错
 */
@RunWith(SpringJUnit4ClassRunner.class)
//@ContextConfiguration(locations = {"classpath:applicationContext-mybatis.xml"})
public class MyTestDemo2 {
    //注册service的bean
    @Resource
    /*private Ebook_entry_service book;*/
    @Test
    public void demo1(){
     /*  Ebook_entry e = book.getInfo("13");
        System.out.println(e.getTitle());*/
    }


}
